package com.zzyl.nursing.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * 分页查询报警数据查询参数实体类
 *
 * @Author mr.l
 * @Date: 2/6/2025 上午8:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
 @ApiModel("分页查询报警数据查询参数实体类")
public class DataQueryDto {
    @ApiModelProperty (value = "设备名称")
    private String deviceName;

    @ApiModelProperty (value = "开始报警时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @ApiModelProperty (value = "结束报警时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    @ApiModelProperty (value = "报警报警数据id")
    private Integer id;

    @ApiModelProperty (value = "处理状态，0 待处理 1已处理")
    private Integer status;
}
